package router

import (
	"github.com/gin-gonic/gin"
	"zg5/zk1/goods-management/api-gateway/internal/handler"
)

func LoadRouter(r *gin.Engine) {

	apiRouter := r.Group("/api")
	{
		goodsRouter := apiRouter.Group("/goods")
		{
			goodsRouter.POST("/upload", handler.OssUpload)
			goodsRouter.POST("/add", handler.AddGoods)
			goodsRouter.GET("/list", handler.GoodsList)
		}

	}
}
